package com.rlz.base.tools.refresh;

public interface PullListener {
        /**
         * 下拉中
         *
         */
        default void onPullingDown(RefreshLayout refreshLayout, float fraction){}

        /**
         * 上拉
         */
        default void onPullingUp(RefreshLayout refreshLayout, float fraction){}

        /**
         * 下拉松开
         *
         */
        default void onPullDownReleasing(RefreshLayout refreshLayout, float fraction){}

        /**
         * 上拉松开
         */
        default void onPullUpReleasing(RefreshLayout refreshLayout, float fraction){}

        /**
         * 刷新中。。。
         */
        default void onRefresh(RefreshLayout refreshLayout){}

        /**
         * 加载更多中
         */
        void onLoadMore(RefreshLayout refreshLayout);

        /**
         * 手动调用finishRefresh或者finishLoadMore之后的回调
         */
        default void onFinishRefresh(){}

        default void onFinishLoadMore(){}

        /**
        * 正在刷新时向上滑动屏幕，刷新被取消
        */
        default void onRefreshCanceled(){}

        /**
         * 正在加载更多时向下滑动屏幕，加载更多被取消
         */
        default void onLoadMoreCanceled(){}
    }